package io.renren.modules.sys.service.impl;

import io.renren.common.utils.Query;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.modules.sys.dao.SongDao;
import io.renren.modules.sys.entity.SongEntity;
import io.renren.modules.sys.service.SongService;



@Service("songService")
public class SongServiceImpl implements SongService {
	@Autowired
	private SongDao songDao;
	
	@Override
	public SongEntity queryObject(Long id){
		return songDao.queryObject(id);
	}
	
	@Override
	public List<SongEntity> queryList(Map<String, Object> map){
		return songDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return songDao.queryTotal(map);
	}
	
	@Override
	public void save(SongEntity song){
		songDao.save(song);
	}
	
	@Override
	public void update(SongEntity song){
		songDao.update(song);
	}
	
	@Override
	public void delete(Long id){
		songDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		songDao.deleteBatch(ids);
	}

    @Override
    public List<SongEntity> queryListRecommendSort(Query query) {
        return songDao.queryListRecommendSort(query);
    }

    @Override
    public int queryTotalRecommendSort(Query query) {
        return songDao.queryTotalRecommendSort(query);
    }

    @Override
    public List<SongEntity> queryListNewSort(Query query) {
        return songDao.queryListNewSort(query);
    }

    @Override
    public int queryTotalNewSort(Query query) {
        return songDao.queryTotalNewSort(query);
    }
}
